<?php
use taobao\RequestCheckUtil;

/**
 * TOP API: taobao.tbk.sc.general.link.parse request
 * 
 * @author auto create
 * @since 1.0, 2024.09.14
 */
class TbkScGeneralLinkParseRequest
{
	/** 
	 * 推广位id，mm_xx_xx_xx pid三段式中的第三段
	 **/
	private $adzoneId;
	
	/** 
	 * 链接/口令转链
	 **/
	private $materialDto;
	
	/** 
	 * 渠道管理ID（如是主站选品推广场景，必须入参该字段，且bizSceneId字段需入参2-消费者比价场景，否则二次转链失败）
	 **/
	private $relationId;
	
	private $apiParas = array();
	
	public function setAdzoneId($adzoneId)
	{
		$this->adzoneId = $adzoneId;
		$this->apiParas["adzone_id"] = $adzoneId;
	}

	public function getAdzoneId()
	{
		return $this->adzoneId;
	}

	public function setMaterialDto($materialDto)
	{
		$this->materialDto = $materialDto;
		$this->apiParas["material_dto"] = $materialDto;
	}

	public function getMaterialDto()
	{
		return $this->materialDto;
	}

	public function setRelationId($relationId)
	{
		$this->relationId = $relationId;
		$this->apiParas["relation_id"] = $relationId;
	}

	public function getRelationId()
	{
		return $this->relationId;
	}

	public function getApiMethodName()
	{
		return "taobao.tbk.sc.general.link.parse";
	}
	
	public function getApiParas()
	{
		return $this->apiParas;
	}
	
	public function check()
	{
		
	}
	
	public function putOtherTextParam($key, $value) {
		$this->apiParas[$key] = $value;
		$this->$key = $value;
	}
}
